package com.zenq.ssm.mapper;

import java.util.List;

import com.zenq.ssm.entity.Category;

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer categoryId);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer categoryId);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
    
    List<Category> selectAll();
    // 根据parent_id查询所有分类
    List<Category> selectByParentId(int parentId);
    // 根据条件查询
    List<Category> selectByCondition(Category record);
   
}